﻿using System;
using System.Collections.Generic;
using System.ServiceProcess;
using System.Text;
using System.Windows.Forms;
using System.Security;
using System.Security.Permissions;
using System.Security.Policy;
using System.Threading;

namespace CassiniService
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        static void Main()
        {
            bool debug = false;
            if (debug)
            {
                CassiniServer server = new CassiniServer();
                server.StartService(null);
                Console.ReadLine();
            }
            else
            {
                ServiceBase[] ServicesToRun;
                ServicesToRun = new ServiceBase[]
                {
                    new CassiniServer()
                };
                ServiceBase.Run(ServicesToRun);
            }
        }
    }
}
